package com.pingao.mp.modular.common.controller;

import com.pingao.mp.utils.Constant;
import com.pingao.mp.utils.set.MapBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = {"", "/home"})
public class HomeController {

    private static final Logger log = LoggerFactory.getLogger(HomeController.class);

    @RequestMapping(value = {"", "/home"})
    public Object index() {
        log.info("");
        return new MapBuilder<String, Object>().put(Constant.ApiStatus, false).put(Constant.ApiMsg, "请访问前端项目，谢谢").get();
    }
}
